/*
    BibleNotebook - A bible reader software
    Copyright (C) 2014  Williams Fernando Lopez

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
 */

package com.simplebible.bible.objects;

import java.awt.Color;
import java.util.Calendar;
import java.util.List;

/**
 *
 * @author Williams Lopez
 */
public class BookMark  extends BibleObject{

    Calendar fecha;
    List<BookMarkGroup> grupos;
    String palabrasClave;
    String comentario;
    Color  color;

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public String getComentario() {
        return comentario;
    }

    public void setComentario(String comentario) {
        this.comentario = comentario;
    }

    public List<BookMarkGroup> getGrupos() {
        return grupos;
    }

    public void setGrupos(List<BookMarkGroup> grupos) {
        this.grupos = grupos;
    }

    public String getPalabrasClave() {
        return palabrasClave;
    }

    public void setPalabrasClave(String palabrasClave) {
        this.palabrasClave = palabrasClave;
    }

    public Calendar getFecha() {
        return fecha;
    }

    public void setFecha(Calendar fecha) {
        this.fecha = fecha;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj == null){
            return false;
        }
        if(!(obj instanceof BookMark)){
            return false;
        }

        if(obj == this){
            return true;
        }

        BookMark other = (BookMark)obj;

        if(other.getId() != getId()){
            return false;
        }

        return true;

    }

    

}
